package org.jeecg.modules.demo.zyExam.zyPaperMultiQuestion.service.impl;

import org.jeecg.modules.demo.zyExam.zyPaperMultiQuestion.entity.ZyPaperMultiQuestion;
import org.jeecg.modules.demo.zyExam.zyPaperMultiQuestion.mapper.ZyPaperMultiQuestionMapper;
import org.jeecg.modules.demo.zyExam.zyPaperMultiQuestion.service.IZyPaperMultiQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 题库选择题
 * @Author: jeecg-boot
 * @Date:   2025-05-23
 * @Version: V1.0
 */
@Service
public class ZyPaperMultiQuestionServiceImpl extends ServiceImpl<ZyPaperMultiQuestionMapper, ZyPaperMultiQuestion> implements IZyPaperMultiQuestionService {

    @Autowired
    private ZyPaperMultiQuestionMapper zyPaperMultiQuestionMapper;
    @Override
    public List<String> findBySubject(String subject, Integer changeNumber) {
        return zyPaperMultiQuestionMapper.findBySubject(subject,changeNumber);
    }

    @Override
    public List<ZyPaperMultiQuestion> findByIdAndType(String paperCode) {
        return zyPaperMultiQuestionMapper.findByIdAndType(paperCode);
    }
}
